package com.dmall.promotion;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * 启动类
 * @author xiao1.wang
 * @date 2021-06-04 20:07:51
 */
@SpringBootApplication
@EnableAsync
public class SpringEventListenerApplication {

    @PostConstruct
    void started() {
        TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
    }

    public static void main(String[] args) {
        SpringApplication.run(SpringEventListenerApplication.class, args);
    }
}
